<h1>Cycle List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Description</th>
      <th>Startdate</th>
      <th>Enddate</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cycle_list as $cycle): ?>
    <tr>
      <td><a href="<?php echo url_for('cycle/edit?id='.$cycle['id']) ?>"><?php echo $cycle->getid() ?></a></td>
      <td><?php echo $cycle->getname() ?></td>
      <td><?php echo $cycle->getdescription() ?></td>
      <td><?php echo $cycle->getstartdate() ?></td>
      <td><?php echo $cycle->getenddate() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('cycle/new') ?>">New</a>
